package cn.wusifx.zabbix.request.builder;

import cn.wusifx.zabbix.request.BaseRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/user/logout
 */
public class UnAuthRequestBuilder extends RequestBuilder<Map<String,Object>> {
    public UnAuthRequestBuilder(String auth) {
        super("user.logout", auth);
    }

    public UnAuthRequestBuilder(Long id, String auth) {
        super("user.logout", id, auth);
        baseRequest.setParams(new HashMap<>());
    }

    @Override
    public BaseRequest builder() {
        return baseRequest;
    }
}
